package DataStorageAccess;
import java.beans.XMLEncoder;
import java.io.FileOutputStream;
import java.io.IOException;

import ProgramLogic.MediaManager;

public class DataToXML {
    public static void save(MediaManager manager) throws IOException {
	FileOutputStream os = new FileOutputStream("./mediamanager.xml");
	XMLEncoder encoder = new XMLEncoder(os);
	encoder.writeObject(manager);
	encoder.close();
    }

}
